{{- if or .Values.istio.federation.enabled .Values.istio.multicluster.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: ingressgateway
  namespace: d8-{{ $.Chart.Name }}
  {{- include "helm_lib_module_labels" (list $ (dict "app" "ingressgateway")) | nindent 2 }}
spec:
  selector:
    app: ingressgateway
  servers:
    - port:
        number: 15443
        name: tls
        protocol: TLS
      tls:
        mode: AUTO_PASSTHROUGH
      hosts:
        - "*.{{ $.Values.global.discovery.clusterDomain }}"
{{- end }}
